package com.chapter2;

public class ClassTwoHomeWork {
    public static void test1(int x,int y){
        for(int i=0;i<x;i++){
            if(i %y !=0){
                System.out.println(i);
            }
        }
    }

    public static void test2(int rows){
        for (int i=1;i<=rows;i++){
            for (int x=1;x<=i;x++){
                System.out.print("*");
            }
            System.out.println();
        }
    }
    public static void main(String[] args) {
        ClassTwoHomeWork.test1(10,2);
        ClassTwoHomeWork.test2(5);
    }
}
